package day18;

public class Type {
    public void number() throws InterruptedException {
        for (int i=1;i<=52;i++){
            Thread.sleep(499);
            System.out.print(i);
        }
    }
    public void letter() throws InterruptedException {
        char ch;
        for (int i=1;i<=26;i++){
            Thread.sleep(1000);
            ch= (char) (64+i);
            System.out.print(ch);
        }
    }

    public static void main(String[] args) {
        Type tp=new Type();
        new Thread(()->{
            try {
                tp.number();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }).start();
        new Thread(()->{
            try {
                tp.letter();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }).start();
    }
}

